<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/amazeui.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/admin.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/app.css">
</head>
<body>
	<div class="tpl-content-page-title">用户设置</div>
	<ol class="am-breadcrumb">
		<li><a href="#" class="am-icon-home">首页</a></li>
		<li><a href="${pageContext.request.contextPath}/admin/accountManager.do">用户管理</a></li>
		<li class="am-active">用户设置</li>
	</ol>
	<div class="tpl-portlet-components">
		<div class="tpl-block ">
			<div class="am-g tpl-amazeui-form">
				<div class="am-u-sm-12 am-u-md-9">
					<form class="am-form am-form-horizontal" action="${pageContext.request.contextPath}/admin/updateAccount.do" method="post">
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label">用户编号</label>
							<div class="am-u-sm-9">
								<input type="text" value="${account.id}" disabled>
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-email" class="am-u-sm-3 am-form-label">电子邮件
								/ Email</label>
							<div class="am-u-sm-9">
								<input type="email" id="user-email" name="email" value="${account.email }"
									placeholder="输入你的电子邮件 / Email">
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-phone" class="am-u-sm-3 am-form-label">电话
								/ Telephone</label>
							<div class="am-u-sm-9">
								<input type="tel" id="user-phone" name="phone" value="${account.phone }"
									placeholder="输入你的电话号码 / Telephone">
							</div>
						</div>
						<div class="am-form-group">
							<label for="doc-select-1" class="am-u-sm-3 am-form-label">授予角色</label>
							<div class="am-u-sm-9">
						      <select id="doc-select-1" name="role_id">
							      <c:forEach items="${roleList }" var="role">
							        <option value="${role.id }">${role.role_name }</option>
							      </c:forEach>
						      </select>
						     </div>
						</div>
						<div class="am-form-group">
							<div class="am-u-sm-9 am-u-sm-push-3">
								<input type="hidden" name="id" value="${account.id}">
								<input type="submit" class="am-btn am-btn-primary" value="保存修改"/>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>